﻿
<div class="paged">
<a[#if page>1] href="${paging(1)}"[/#if] class="page-a">首页</a>
[#if page>1]
<a href="${paging(page-1)}" class="page-a">上一页</a>
[/#if]
[#assign start=page-4/][#if start<1][#assign start=1/][/#if]
[#assign end=start+8/][#if end>pagedList.totalPages][#assign end=pagedList.totalPages/][/#if][#if end<1][#assign end=1/][/#if]
[#if end-start<8][#assign start=end-8/][/#if][#if start<1][#assign start=1/][/#if]
[#list start..end as p]
<a[#if page!=p] href="${paging(p)}"[/#if] class="[#if page!=p]page-a[#else]page-curr[/#if]">${p}</a>
[/#list]
[#if page < pagedList.totalPages]
<a href="${paging(page+1)}" class="page-a">下一页</a>
[/#if]

<a[#if page<pagedList.totalPages] href="${paging(pagedList.totalPages)}"[/#if] class="page-a" >末页</a>
<div style="clear:both;"></div>
</div>

